<template>
	<wd-tabs v-model="tab" sticky>
	  <block v-for="(item, index) in tabList" :key="index">
	    <wd-tab :title="item.name">
			<view class="main">
				{{ item.name }}: 内容
			</view>
	    </wd-tab>
	  </block>
	</wd-tabs>
</template>

<script setup lang="ts">
	import { ref, reactive } from 'vue'
	
	const tab = ref(0)
	const tabList = reactive([
		{
			name: '标签1'
		},
		{
			name: '标签2'
		}
	])
</script>

<style lang="scss" scoped>
	.main {
		width: 100%;
		height: 200vh;
	}
</style>
